package com.hmall.common.config;

import feign.RequestInterceptor;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 拦截
 *
 * @Author 15198
 * @Date 2022/8/12 10:31
 * @Description: 拦截
 * @Created by
 */
@Configuration
@EnableFeignClients(basePackages = "com.hmall.common.myClient")
public class FeignConfig {

    @Bean
    public RequestInterceptor interceptor(){
        return new MyInterceptor();
    }



}
